<template>
  <Dialog ref="dialog" width="1000" title="编辑用户">
    <el-form
      ref="ruleFormRef"
      :model="ruleForm"
      :rules="rules"
      label-width="100px"
      class="demo-ruleForm"
      status-icon
    >
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="昵称" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="考生性别" prop="name">
            <el-radio-group v-model="ruleForm.radio" disabled>
              <el-radio :value="0">男</el-radio>
              <el-radio :value="1">女</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="考生民族" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="登录账号" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="高考省份" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="高考年份" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="学校地区" prop="name">
            <el-input v-model="ruleForm.name" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="学校名称" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="父亲" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="电话" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="职业" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="母亲" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="电话" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="职业" prop="name">
            <el-input v-model="ruleForm.name" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="备注" prop="name">
            <el-input v-model="ruleForm.name" type="textarea" :rows="5" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-divider />
      <div class="right">
        <el-button>取消</el-button>
        <el-button type="primary" @click="submitForm(ruleFormRef)"
          >保存</el-button
        >
      </div>
    </el-form>
  </Dialog>
</template>
<script setup>
import Dialog from '@/components/Dialog/Dialog.vue';
import { ref, reactive } from 'vue';

const dialog = ref(null);
const ruleForm = reactive({
  name: '',
  radio: '',
  region: '',
  count: '',
  date1: '',
  date2: '',
  delivery: false,
  type: [],
  resource: '',
  desc: '',
});
function submitForm() {
  dialog.value.closeChange();
}
function openChange() {
  dialog.value.openChange();
}

defineExpose({
  openChange,
});
</script>
